export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user/login', component: './User/Login' },
    ],
  },
  { 
    icon: 'CreditCardOutlined',
    path: '/cards',
    component: './Customer/Cards',
    name: '我的银行卡',
    access: 'canUser',
  },
  { 
    icon: 'UserOutlined', 
    path: '/customer-manage', 
    component: './CustomerManage', 
    name: '客户管理', 
    access: 'canAdmin' 
  },
  { 
    icon: 'WalletOutlined', 
    path: '/card-manage', 
    component: './CardManage', 
    name: '银行卡管理', 
    access: 'canAdmin' 
  },
  { 
    icon: 'BankOutlined',
    path: '/deposit-manage', 
    component: './DepositManage', 
    name: '存款业务管理', 
    access: 'canAdmin' 
  },
  { 
    icon: 'SwapOutlined', 
    path: '/transaction-manage', 
    component: './TransactionManage', 
    name: '交易管理', 
    access: 'canAdmin' 
  },
  { 
    icon: 'FundOutlined',
    path: '/transactions',
    component: './Customer/Transactions',
    name: '交易记录',
    access: 'canUser',
  },
  { 
    icon: 'UserOutlined',
    path: '/profile',
    component: './Customer/Profile',
    name: '个人信息',
    access: 'canUser',
  },
  { path: '/', redirect: '/user/login' },
  { path: '*', layout: false, component: './404' },
];